package com.bss.model;

// Generated Oct 27, 2011 10:37:49 PM by Hibernate Tools 3.3.0.GA

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.andy.basics.AbstractEntity;

@Entity
@Table(name = "Guidelines")
public class Guidelines extends AbstractEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8057062899885045971L;
	private int id;
	private String description;
	private String applicableTo;

	@Id
	@Column(name = "id", unique = true, nullable = false)
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Integer getId() {
		return this.id;
	}

	@Override
	public void setId(final int id) {
		this.id = id;
	}

	@Column(name = "description", length = 500)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(final String name) {
		this.description = name;
	}

	public void setApplicableTo(final String applicabelTo) {
		this.applicableTo = applicabelTo;
	}

	@Column(name = "applicableTo", length = 30)
	public String getApplicableTo() {
		return this.applicableTo;
	}

	@Override
	public String toString() {
		return this.description;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "date", length = 19)
	public Date getDate() {
		return this.date;
	}
}
